package com.vpx.server.service.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vpx.server.bean.entity.CTypeRel;
import com.vpx.server.mapper.system.CTypeRelMapper;
import com.vpx.server.service.system.CTypeRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Administrator
* @description 针对表【c_type_rel】的数据库操作Service实现
* @createDate 2023-11-18 15:37:22
*/
@Service
public class CTypeRelServiceImpl extends ServiceImpl<CTypeRelMapper, CTypeRel>
    implements CTypeRelService {
@Autowired
private CTypeRelMapper cTypeRelMapper;
    @Override
    public void insert(CTypeRel cTypeRel) {
        cTypeRelMapper.add(cTypeRel);
    }

    @Override
    public void update(CTypeRel cTypeRel) {
cTypeRelMapper.updateById(cTypeRel);
    }

    @Override
    public void delete(CTypeRel cTypeRel) {
cTypeRelMapper.deleteById(cTypeRel.getId());
    }

    @Override
    public List<CTypeRel> selectAll() {
        return cTypeRelMapper.selectAll();
    }
}




